package com.awanp3.nimbus.base.domain.vo;

import com.awanp3.nimbus.base.domain.BaseMaterial;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.awanp3.nimbus.common.excel.annotation.ExcelDictFormat;
import com.awanp3.nimbus.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 物料视图对象 base_material
 *
 * @author 20014170
 * @date 2025-09-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BaseMaterial.class)
public class BaseMaterialVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 物料编码
     */
    @ExcelProperty(value = "物料编码")
    private String materialCode;

    /**
     * 物料描述
     */
    @ExcelProperty(value = "物料描述")
    private String materialDesc;

    /**
     * 物料类型
     */
    @ExcelProperty(value = "物料类型")
    private String materialType;

    /**
     * 产业编码
     */
    @ExcelProperty(value = "产业编码", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "base_industry")
    private String industryCode;

    /**
     * 产业名称
     */
    @ExcelProperty(value = "产业名称")
    private String industryName;

    /**
     * 工厂编码
     */
    @ExcelProperty(value = "工厂编码")
    private String plantCode;

    /**
     * 长度
     */
    @ExcelProperty(value = "长度")
    private Integer length;

    /**
     * 宽度
     */
    @ExcelProperty(value = "宽度")
    private Integer width;

    /**
     * 高度
     */
    @ExcelProperty(value = "高度")
    private Integer height;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_normal_disable")
    private String status;


}
